<template>
    <div class="directory">
        <p class="mun">资源目录中心/目录列表</p>
        <div class="mun2">
            <span class="mun2_name">资源目录中心</span>
            <span class="mun2_time">更新时间：2020/12/07 13:17:02</span>
        </div>
        <div class="card">
            <div class="top">
                <div class="top_word">
                    目录列表
                </div>
                <div class="top_left">
                    <el-input v-model="input" placeholder="请输入内容" class="top_left_input"></el-input>
                    <el-button class="top_left_button">搜索</el-button>
                </div>
            </div>
            <el-divider></el-divider>
            <div class="content">
                <div class="content_first">
                    <div class="content_first_top">
                        <img src="../assets/img/directoryImg/icon01.png" alt="">
                        <span>家园码共享平台</span>
                    </div>
                    <div class="content_first_bottom">
                        <button>开发应用</button>
                        <button @click="toApiList">开发文档</button>
                    </div>
                </div>
                <div class="content_second">
                    <div class="content_first_top">
                        <img src="../assets/img/directoryImg/icon02.png" alt="">
                        <span>食品安全追溯平台</span>
                    </div>
                    <div class="content_first_bottom">
                        <button>开发应用</button>
                        <button>开发文档</button>
                    </div>
                </div>
                <div class="content_third">
                    <div class="content_first_top">
                        <img src="../assets/img/directoryImg/icon03.png" alt="">
                        <span>食品安全追溯平台</span>
                    </div>
                    <div class="content_first_bottom">
                        <button>开发应用</button>
                        <button>开发文档</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Directory",
        methods:{
            toApiList(){
                this.$router.push({
                    name:'ApiList'
                })
            }
        },
    }
</script>

<style lang="less">
.directory{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    .mun{
        width: 126px;
        height: 17px;
        opacity: 0.6;
        font-size: 12px;
        font-family: PingFang SC, PingFang SC-Medium;
        font-weight: 500;
        text-align: left;
        color: #000000;
        line-height: 22px;
    }
    .mun2{
        margin-top: 6px;
        margin-bottom: 10px;
        .mun2_name{
            width: 108px;
            height: 25px;
            font-size: 18px;
            font-family: PingFang SC, PingFang SC-Heavy;
            font-weight: 800;
            text-align: left;
            color: #000000;
            line-height: 22px;
        }
        .mun2_time{
            margin-left: 12px;
            width: 183px;
            height: 17px;
            opacity: 0.8;
            font-size: 12px;
            font-family: PingFang SC, PingFang SC-Medium;
            font-weight: 500;
            text-align: left;
            color: #000000;
            line-height: 22px;
        }
    }
    .card{
        width: 1600px;
        height: 100%;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.06);
        padding-left: 24px;
        padding-right: 30px;
        .top{
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .top_word{
                width: 64px;
                height: 50px;
                font-size: 16px;
                font-family: PingFang SC, PingFang SC-Bold;
                font-weight: 700;
                text-align: left;
                color: #5b8ff9;
                border-bottom: 3px solid #5B8FF9;
                line-height: 50px;
            }
            .top_left{
                display: flex;
                /*justify-content: space-between;*/
                align-items: center;
                .top_left_input{
                    width: 313px;
                    height: 36px;
                    border-radius: 5px;
                }
                .el-input__inner{
                    background-color: rgb(248,248,248);
                    border:none;
                    border-radius: 8px;
                    height: 36px;

                }
                .top_left_button{
                    margin-left: 10px;
                    font-size: 14px;
                    font-weight: 800;
                    text-align: left;
                    color: #ffffff;
                    width: 64px;
                    height: 36px;
                    background:linear-gradient(135deg,#5b8ff9 1%, #1ffce5 97%);
                    border-radius:8px;
                    letter-spacing:2px;
                }
                .el-button{
                    border-radius: 8px;
                    box-shadow: none;
                    border: none;
                }
            }
        }
        .el-divider--horizontal{
            margin-top: 0px;
            width: 96%;
            margin-left: 4%;
            background-color: rgb(242,242,242);
        }
        .content{
            display: flex;
            .content_first{
                border-radius: 10px;
                box-shadow: 0px 0px 22px 3px rgba(0, 0, 0,0.1);
                width: 370px;
                height: 140px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: flex-start;
                padding-left: 20px;
                padding-top: 30px;
                padding-bottom: 30px;
                background:
                           url('../assets/img/directoryImg/title01.png') no-repeat right -10px top -6px,
                           url('../assets/img/directoryImg/img01.png') no-repeat right bottom,
                           url('../assets/img/directoryImg/bg01.png') no-repeat;
                .content_first_top{
                   display: flex;
                   align-items: center;
                   span{
                       width: 168px;
                       height: 33px;
                       font-size: 24px;
                       font-family: PingFang SC, PingFang SC-Bold;
                       font-weight: 700;
                       text-align: left;
                       color: #ffffff;
                       margin-left: 8px;
                   }
               }
                .content_first_bottom{
                    button{
                        width: 80px;
                        height: 30px;
                        background: rgba(255,255,255,0.40);
                        border-radius: 5px;
                        font-size: 14px;
                        font-weight: 400;
                        color: #ffffff;
                        line-height: 30px;
                        text-align: center;
                        border: none;
                        outline: none;
                        cursor: pointer;
                    }
                    button:nth-child(2){
                        margin-left: 10px;
                    }
                }
            }
            .content_second{
                border-radius: 10px;
                box-shadow: 0px 0px 22px 3px rgba(0, 0, 0,0.1);
                margin-left: 20px;
                width: 370px;
                height: 140px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: flex-start;
                padding-left: 20px;
                padding-top: 30px;
                padding-bottom: 30px;
                background:
                        url('../assets/img/directoryImg/title02.png') no-repeat right top,
                        url('../assets/img/directoryImg/img02.png') no-repeat right bottom,
                        url('../assets/img/directoryImg/bg02.png') no-repeat;
                .content_first_top{
                    display: flex;
                    align-items: center;
                    span{
                        width: 300px;
                        height: 33px;
                        font-size: 24px;
                        font-family: PingFang SC, PingFang SC-Bold;
                        font-weight: 700;
                        text-align: left;
                        color: #ffffff;
                        margin-left: 8px;
                    }
                }
                .content_first_bottom{
                    button{
                        width: 80px;
                        height: 30px;
                        background: rgba(255,255,255,0.40);
                        border-radius: 5px;
                        font-size: 14px;
                        font-weight: 400;
                        color: #ffffff;
                        line-height: 30px;
                        text-align: center;
                        border: none;
                        outline: none;
                        cursor: pointer;
                    }
                    button:nth-child(2){
                        margin-left: 10px;
                    }
                }
            }
            .content_third{
                border-radius: 10px;
                box-shadow: 0px 0px 22px 3px rgba(0, 0, 0,0.1);
                margin-left: 20px;
                width: 370px;
                height: 140px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: flex-start;
                padding-left: 20px;
                padding-top: 30px;
                padding-bottom: 30px;
                background:
                        url('../assets/img/directoryImg/title03.png') no-repeat right top,
                        url('../assets/img/directoryImg/img03.png') no-repeat right bottom,
                        url('../assets/img/directoryImg/bg03.png') no-repeat;
                .content_first_top{
                    display: flex;
                    align-items: center;
                    span{
                        width: 200px;
                        height: 33px;
                        font-size: 24px;
                        font-family: PingFang SC, PingFang SC-Bold;
                        font-weight: 700;
                        text-align: left;
                        color: #ffffff;
                        margin-left: 8px;
                    }
                }
                .content_first_bottom{
                    button{
                        width: 80px;
                        height: 30px;
                        background: rgba(255,255,255,0.40);
                        border-radius: 5px;
                        font-size: 14px;
                        font-weight: 400;
                        color: #ffffff;
                        line-height: 30px;
                        text-align: center;
                        border: none;
                        outline: none;
                        cursor: pointer;
                    }
                    button:nth-child(2){
                        margin-left: 10px;
                    }
                }
            }
        }
    }
}
</style>
